<?php
class ControllerCommonTest extends Controller {

    public function index()
    {
        $data['cooker_registerable'] = $this->config->get('commonconfig_common_cookerregisterable')==1?1:0;
        $signPackage = $this->weixinjs->getSignPackage();
        
        $data['wx_appId'] = $signPackage["appId"];
        $data['wx_timestamp'] = $signPackage["timestamp"];
        $data['wx_nonceStr'] = $signPackage["nonceStr"];
        $data['wx_signature'] = $signPackage["signature"];
        
        $this->response->setHtmlOutput($this->load->view('/apply.tpl', $data));
    }
}